package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.etone.smartAudit.enums.StateType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020/10/22
 * @description: 服务器盘符信息
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "f_server_disk")
public class ServerDisk implements Serializable {
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务器id
     */
    @TableField(value = "intServerId")
    private Integer serverId;

    /**
     * 盘符名称
     */
    @TableField(value = "vcName")
    private String name;

    /**
     * 磁盘空间大小（G）
     */
    @TableField(value = "douSpace")
    private Double space;

    /**
     * 磁盘已使用空间大小(G)
     */
    @TableField(value = "douUsedSpace")
    private Double usedSpace;

    /**
     * 挂载点
     */
    @TableField(value = "vcMount")
    private String mount;

    /**
     * 有效性
     */
    @TableField("vcState")
    private StateType state;

}